package com.ruoyi.party.system.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import com.ruoyi.common.core.domain.AjaxResult;

@RestControllerAdvice
public class ActivitySignExceptionHandler {
	private static final Logger log = LoggerFactory.getLogger(ActivitySignExceptionHandler.class);

	/**
	 * 签到异常
	 */
	@ExceptionHandler(ActivitySignException.class)
	public AjaxResult loginException(ActivitySignException e) {
		log.error(e.getMessage(), e);
		return AjaxResult.error(e.getMessage());
	}

}
